package com.newlink.building.userinfo.mvp

import com.newlink.building.common_base.base.BasePresenter
import com.newlink.building.common_base.model.bean.*
import com.newlink.building.userinfo.mvp.contract.Module_UserInfo_MessageCenterContract
import com.newlink.building.userinfo.mvp.model.Module_UserInfo_MessageCenterModel

/**
 * @author wangyang
 * @date 2022/9/19
 * @description 我的——消息中心页面的Presenter
 */
class Module_UserInfo_MessageCenterPresenter :
    BasePresenter<Module_UserInfo_MessageCenterContract.Model, Module_UserInfo_MessageCenterContract.View>(),
    Module_UserInfo_MessageCenterContract.Presenter {

    override fun createModel(): Module_UserInfo_MessageCenterContract.Model? {
        return Module_UserInfo_MessageCenterModel()
    }

    override fun getMessageList(request: MessageListRequest) {
        mModel?.getMessageList(request)
    }

    override fun deleteAllMessageList(request: MessageCleanRequest) {
        mModel?.deleteAllMessageList(request)
    }

}